import socket,sys

host , port =  sys.argv[1:]

results = socket.getaddrinfo(host,port,0,socket.SOCK_STREAM)

for result in results:
	if result[0] == socket.AF_INET:
		print "Family : AF_INET"
	elif result[0] == socket.AF_INET6:
		print "family : AF_INET6"
	else:
		print "family : ",result[0]
	
	if result[1] == socket.SOCK_STREAM:
		print "Socket : Stream"
	else:
		print "Socket : ",result[1]

	print "protocol :",result[2]
	print "Canonical Name: ",result[3]
	print "Socket Address : " ,result[4]
